
import request from '../utils/request';//axios方法封装

//物料列表
export const AddProductionPlanning = data => {
    return request({
        url: 'AddProductionPlanning',
        method: 'post',
        data: data//get :param参数
    });
};
//生产计划列表
export const ShowProductionPlanning = query => {
    return request({
        url: 'ShowProductionPlanning',
        method: 'get',
        params: query//get :param参数
    });
};
//生产计划详情
export const DetailsProductionPlanning = query => {
    return request({
        url: 'DetailsProductionPlanning?id='+query,
        method: 'get',
        params: query//get :param参数
    });
};
//分解工单
export const CreateWorkOrder = query => {
    return request({
        url: 'CreateWorkOrder?id='+query,
        method: 'get',
    });
};